﻿using System.Linq;

namespace VideoSeller.Business.Data
{
	public partial class Content
	{
		public ContentLocalization DefaultContent
		{
			get
			{
				if (ContentLocalizations.Any())
				{
					var defaultContent = ContentLocalizations.SingleOrDefault(x => x.CultureName == "en-US");
					return defaultContent;
				}

				return null;
			}
		}
	}
}